import { api } from './api';
import { User, LoginRequest } from '@/types/models';

export const authService = {
  login: (data: LoginRequest) => 
    api.post<{ token: string; user: User }>('/auth/login', data),
  
  getCurrentUser: () => 
    api.get<User>('/auth/me'),
  
  logout: () => 
    api.post<void>('/auth/logout'),
}; 